function play(x, y) {
  var mstring;
  if(x=='c'){
    mstring = "c" + y.toString();
  }
  else if(x=='d'){
    mstring = "d" + y.toString();
  }
  else if(x=="e"){
    mstring = "e" + y.toString();
  }
  else if(x=="f"){
    mstring = "f" + y.toString();
  }
  else if(x=="g"){
    mstring = "g" + y.toString();
  }
  else if(x=="a"){
    mstring = "a" + y.toString();
  }
  else if(x=="b"){
    mstring = "b" + y.toString();
  }
  var audio = document.getElementById(mstring);
  audio.play();
}

function plays(x, y) {
  var mstring;
  if(x=='c'){
    mstring = "c" + y.toString() + "s";
  }
  else if(x=='d'){
    mstring = "d" + y.toString() + "s";
  }
  else if(x=="e"){
    mstring = "e" + y.toString() + "s";
  }
  else if(x=="f"){
    mstring = "f" + y.toString() + "s";
  }
  else if(x=="g"){
    mstring = "g" + y.toString() + "s";
  }
  else if(x=="a"){
    mstring = "a" + y.toString() + "s";
  }
  else if(x=="b"){
    mstring = "b" + y.toString() + "s";
  }
  var audio = document.getElementById(mstring);
  audio.play();
}
